package com.zcc.makingfriend.mapper;

import com.zcc.makingfriend.dao.Liked;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zcc
 */
@Mapper
public interface LikedMapper {
    int addLiked(Liked liked);

    int cancelLiked(Liked liked);

    Liked getLiked(String articleId, String userId);

    Long countUserLikes(String userId);

    List<Liked> findLikeds(String userId, int page, int size);

}
